From 6a726c356410abc8bd74e8b32ce5fb915bb3a5ef Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Thu, 17 Aug 2006 19:03:06 -0400 Subject: [PATCH] [XEN][POWERPC] find_space returns garbage Based-on-patch-by: Amos Waterland Signed-off-by: Jimi Xenidis Signed-off-by: Hollis Blanchard --- xen/arch/powerpc/boot_of.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/powerpc/boot_of.c b/xen/arch/powerpc/boot_of.c index d3048184dc..a19bafb13f 100644 --- a/xen/arch/powerpc/boot_of.c +++ b/xen/arch/powerpc/boot_of.c @@ -700,7 +700,8 @@ static ulong find_space(u32 size, u32 align, multiboot_info_t *mbi) ulong eomem = ((u64)map->length_high << 32) | (u64)map->length_low; ulong base; - if (size == 0) return base; + if (size == 0) + return 0; if (align == 0) of_panic("cannot call %s() with align of 0\n", __func__); -- 2.30.2